﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace T.E.ERP.Domains.Materials
{
    /// <summary>
    /// 订单物料表
    /// </summary>
    [Table("OrderMaterials")]
    public class OrderMaterials
    {
        /// <summary>
        /// 销售订单副表Id(主键)
        /// </summary>
        [Key]
        public int Id { get; set; }
        /// <summary>
        /// 单据编码   外键  （销售订单）
        /// </summary>
        public long SaleCode { get; set; }
        /// <summary>
        /// 物料编码
        /// </summary>
        public string MaterialsCode { get; set; }
        /// <summary>
        /// 物料名称
        /// </summary>
        public string MaterialsName { get; set; }
        /// <summary>
        /// 型号规格
        /// </summary>
        public string ModelSpecification { get; set; }
        /// <summary>
        /// 颜色
        /// </summary>
        public string Color { get; set; }
        /// <summary>
        /// 主计量
        /// </summary>
        public string Calulate { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public int CalulateNumber { get; set; }
        /// <summary>
        /// 出库数量
        /// </summary>
        public int OutBoundNumber { get; set; }
        /// <summary>
        /// 体积
        /// </summary>
        public double Volume { get; set; }
        /// <summary>
        /// 批号
        /// </summary>
        public string Batch { get; set; }
        /// <summary>
        /// 单价
        /// </summary>
        public double Price { get; set; }
        /// <summary>
        /// 总价
        /// </summary>
        public double TotalPrice { get; set; }
        /// <summary>
        /// 质量要求
        /// </summary>
        public string QualityRequir { get; set; }
        /// <summary>
        /// 备注信息
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 物料类型
        /// </summary>
        public int MaterialsClass { get; set; }
    }
}
